package com.zbkj.dal.pojo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalTime;

@Data
public class ReservationStoreVO {

    @ApiModelProperty("预约编号")
    private String reservationNo;

    @ApiModelProperty(value = "取件日期", example = "2024-02-02")
    private LocalDate pickUpDate;

    @ApiModelProperty(value = "取件时间段", example = "09:00:00")
    @JsonFormat(pattern = "HH:mm:ss")
    @DateTimeFormat(pattern = "HH:mm:ss")
    private LocalTime startTime;

    @ApiModelProperty(value = "取件时间段", example = "09:00:00")
    @JsonFormat(pattern = "HH:mm:ss")
    @DateTimeFormat(pattern = "HH:mm:ss")
    private LocalTime endTime;

    //  商户信息

    @ApiModelProperty(value = "商户ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商户名称")
    private String name;

    @ApiModelProperty(value = "商户手机号")
    private String phone;

    @ApiModelProperty(value = "省")
    private String province;

    @ApiModelProperty(value = "省")
    private Integer provinceId;

    @ApiModelProperty(value = "市")
    private String city;

    @ApiModelProperty(value = "市")
    private Integer cityId;

    @ApiModelProperty(value = "区")
    private String district;

    @ApiModelProperty(value = "区")
    private Integer districtId;

    @ApiModelProperty(value = "商户详细地址")
    private String addressDetail;

    @ApiModelProperty(value = "纬度")
    private String latitude;

    @ApiModelProperty(value = "经度")
    private String longitude;


}
